* {
    padding: 0;
    margin: 0;
}

body {
    background-color: pink;
}

/* 先写登录、注册样式，在重叠3D */
.login-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    perspective: 500px;
}

.login-wrapper .turn {
    perspective: 500px;
    transform-origin: center;
    transform: rotateY(30deg);
}

.login-wrapper
.register,.login {
    position: absolute;
    left: 50%;
    width: 500px;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.login-wrapper .register{
    transform-origin: center;
    transform: rotateY(180deg);
    
}
.login-wrapper .login{
    transform-origin: center;
    transform: rotateY(360deg);
   
}
.login-wrapper input {
    border: none;
    outline: none;
    padding: 0 10px;
    background-color: #4E495D;
    width: 70%;
    height: 50px;
    margin-top: 20px;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(78, 73, 79, .5);
    border-radius: 8px;
}

.login-wrapper input[type='submit'] {
    background-color: #981E61;
}